package demo.hw;

import java.io.IOException;
import java.util.Scanner;

/**
 * 输入一个正浮点值
 * 输入该数值的近似整数值，大于5向上取整，小于5向下取整
 *
 * 输入
 * 5.5
 * 输出6
 * @author taqo
 * @date 2021/5/25
 */
public class _取近似值 {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextDouble();
        a(a);
    }

    private static void a(double a) {
        int b = (int) a;
        if (a-b>=0.5){
            b = (int) (a+0.5);
        }
        System.out.println(b);
    }
}
